Feature: Member set Statement
  In order to set statement in voting application
  As a member
  I want to try to set message for statement

@member_set_statement
Scenario:  Member want to set Statement
    Given the following user record
    |firstname|lastname|surname|login|email| password|password_confirmation| role |
    |user|user|user|user|user@sad.com|user1234|user1234|member|
    |member|member|member|member|member@sad.com|user1234|user1234|member|
    Given the following category record
    |title|
    |A|
    |B|
    And I login as "member" with password "user1234"
    Then I should see "You are login as member member"
    And I visit "My Statement" page by clicking "my statement" link
    Then I should see "My Statement" form
    And I select "B" from "category"
    And I fill in "message" with "This is a test"
    When I press "OK"
    Then I should see "Statement has been added"
